Add section about `gtk_widget_set_app_paintable`
authorJaap aarts <jaap.aarts1@gmail.com>
Wed, 23 Jun 2021 13:08:06 +0000 (13:08 +0000)
committerEmmanuele Bassi <ebassi@gmail.com>
Wed, 23 Jun 2021 13:08:06 +0000 (13:08 +0000)
docs/reference/gtk/migrating-3to4.md

index 9bc982962ae71e3a95a2c05ea80435c7b8d5e9c4..18d641496b12549d01c3c6cf3facdf9dc974ba8d 100644 (file)
@@ -99,6 +99,12 @@ you should stop using `GdkVisual` APIs, since this object not longer
 exists in GTK 4. Most of its APIs are deprecated already and not
 useful when dealing with RGBA visuals.
 
+### Stop using `gtk_widget_set_app_paintable`
+
+This is gone in GTK4 with no direct replacement. But for some usecases there
+are alternatives. If you want to make the background transparent, you can set
+the background color to, for example, `rgba(255, 255, 255, 0)` using CSS instead.
+
 ### Stop using `GtkBox` padding, fill and expand child properties
 
 GTK 4 removes these [class@Gtk.Box] child properties, so you should stop using
@@ -1338,3 +1344,4 @@ of tree models, and widgets instead of cell renderers.
 
 To learn more about the new list widgets, you can read the [List Widget
 Overview](#ListWidget).
+